package com.ehome.poct.base.dao.device.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ehome.mybatisplus.autoconfigure.BaseEntityOld;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 设备开机自检记录
 *
 * @author laobai
 * @Date 2022-10-14 17:38
 */
@TableName("test_device_booting_hist")
@Data
public class TestDeviceBootingHistDO extends BaseEntityOld<TestDeviceBootingHistDO> {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    /**
     * TestDeviceBootingHistId
     */
    @TableId
    private Long testDeviceBootingHistId;
    /**
     * 设备类型 1 金标仪 2 血常规
     */
    @TableField(value = "device_type")
    private Integer deviceType;
    /**
     * 设备编号
     */
    @TableField(value = "sno")
    private String sno;
    /**
     * 检测模块自检状态 0 失败，1 pass
     */
    @TableField(value = "check_result")
    private Integer checkResult;
    /**
     * 通信模块 自检状态0 失败 1通过
     */
    @TableField(value = "communication_result")
    private Integer communicationResult;
    /**
     * 电机模块自检状态0失败1 pass
     */
    @TableField(value = "motion_result")
    private Integer motionResult;
    /**
     * 网络模块自检状态0失败1pass
     */
    @TableField(value = "network_result")
    private Integer networkResult;
    /**
     * 存储模块自检状态0 失败1成功
     */
    @TableField(value = "storage_result")
    private Integer storageResult;
    /**
     * 扫码模块自检状态 0失败 1 pass
     */
    @TableField(value = "scanner_result")
    private Integer scannerResult;

    @TableField(value = "booting_check_time")
    private LocalDateTime bootingCheckTime;

}
